import Vue from "vue";

import App from "./App.vue";
import router from "./router";
import store from "./store/index";
import * as filters from "./filters";

import VueCron from 'vue-cron'

Vue.use(VueCron);

import "src/assets/styles/normalize.css";
import "src/assets/styles/common.scss";

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)

/**
 *  .env.development  开发环境变量
 *  .env.production  生产环境变量
 *  console.inof(procee.env.VUE_APP_BASE_API)
 * */
// eslint-disable-next-line no-console
console.info(33, process.env.VUE_APP_BASE_API);

// 注册全局过滤器
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key]);
});

Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount("#app");
